@import 'color';

.runnable-unit {
  .runnable-unit-type {
    width: 200px;
    padding-left: 10px;
    border-right: 1px solid $color-border-light;

    &.type-linner {
      color: $lightgreen;
    }
    &.type-maven {
      color: $lightred;
    }
    &.type-docker {
      color: $lightblue;
    }
  }
  .runnable-unit-type-text {
    .iconfont, .anticon {
      margin-right: 5px;
    }
  }
  .runnable-unit-name {
    padding-left: 21px;
    font-weight: bold;
    font-size: 16px;
  }
  .runnable-unit-delete {
    float: right;
    margin-right: 10px;
    color: $color-text-secondary-assist;

    &:hover {
      color: $color-danger;
    }
  }
  .runnable-unit-content {
    padding-left: 20px;
  }
  .unit-url, .unit-machines {
    margin-bottom: 10px;

    .iconfont {
      color: $color-text-secondary-assist;
      margin-right: 10px;
    }
  }

  .child-units {
    padding-left: 50px;
    margin-top: 10px;
    border-top: 1px solid $color-border-light;

    .child-unit {
      position: relative;
      padding: 10px;

      .unit-delete-link {
        position: absolute;
        left: -50px;
        color: $color-text-secondary-assist;

        &:hover {
          color: $color-danger;
        }
      }
    }
  }
}
